import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/vant.js'



router.beforeEach((to, from, next) => {
  if (to.path === '/') {
    next();
  }
  else if (sessionStorage.getItem('isAuth') == 'true') {
    next();
  }
  else {
    next('/');
  }
})



Vue.config.productionTip = false
Vue.prototype.showFootTab = {
  isShow: false,
  user: '',
}
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
